<%@ page language="java" pageEncoding="UTF-8"%>
<jsp:directive.page import="edu.ntu.im.p2ptrade.RecordManager.Record"/>
<jsp:directive.page import="java.util.List"/>
<jsp:directive.page import="edu.ntu.im.p2ptrade.RecordManager"/>
<% 
	List<RecordManager.Record> records = (List<RecordManager.Record>)request.getAttribute("records");
%>
<html>
  <head></head>
  <body>
  <table>
  <tr>
    <td>from</td>
    <td>to</td>
    <td>message</td>
    <td>object hex</td>
    <td>digital signature hex</td>
  </tr>
  <%for(RecordManager.Record record:records){ %>
  <tr>
    <td><%=record.getFromWhom()%></td>
    <td><%=record.getToWhom()%></td>
    <td><%=record.getMsg()%></td>
    <td><%=record.getObjHex()%></td>
    <td><%=record.getDgHex()%></td>    
  </tr>
  <%} %>
  </table>
  </body>
</html>